package com.farmer.service;

import com.farmer.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.farmer.pojo.Goods;
import com.farmer.utils.Result;

import java.util.List;

/**
* @author 86183
* @description 针对表【comment(评论信息表)】的数据库操作Service
* @createDate 2024-05-03 16:00:28
*/
public interface CommentService extends IService<Comment> {

    Result add(String token, Comment comment);

    Result delete(Integer id);

    Result getById(Integer id);

    Result getAll();

    Result update(Comment comment);

//    Result getByPolicyId();

//    Result getByPolicyId(Integer id);

   List<Comment> listTree();

    Result deleteBatch(List<Integer> ids);


    /*
     * 分页查询*/
    Result page(Integer pageNum, Integer pageSize);

    Result getByTitleLike(String content);
}
